package com.changgou.user.dao;
import com.changgou.user.pojo.User;
import feign.Param;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;

/**
 * @author liyipeng
 * @date 2021-06-26 17:00
 */
public interface UserMapper extends Mapper<User> {
    @Update(value="update tb_user set points=points+#{points} where username =#{username}")
    int addPoints(@Param(value="username") String username, @Param(value="points")Integer points);
}
